package pl.edu.mimuw.irs.rcp.util;

public class Three<T1, T2, T3> extends Pair<T1, T2> {

	// *** Attributes

	private T3 other;
	public T3 getOther() {
		return other;
	}
	public void setOther(T3 other) {
		this.other = other;
	}
	
	// *** Constructors
	
	public Three(T1 key, T2 value, T3 other) {
		super(key, value);
		setOther(other);
	}
	
	public Three(T1 key, T2 value) {
		super(key, value);
	}
	
	public Three(T1 key) {
		super(key);
	}
	
	public Three() {
		super();
	}
	
	// *** Methods

	@Override
	public String toString() {
		return getKey() + "=" + getValue() + "(" + getOther() + ")";
	}
}
